$.messager.model = {
    ok:{ text: "确定" },
    cancel: { text: "取消" }
};

function reload(url) {
    $.messager.alert("温馨提示","操作成功,1.5秒后自动刷新");
    setTimeout(function () {
        if (url) {
            location.href = url;
            return;
        }
        location.reload();
    },1500);
};

function minDate() {
    WdatePicker({
        readOnly: true,
        maxDate: new Date()
    })
};

function maxDate() {
    WdatePicker({
        readOnly: true,
        minDate: $("#searchForm input[name='beginDate']").val(),
        maxDate: new Date()
    })
}